Home

Operator Usage

Name

sdrop

Description

sdrop seq
drop all kets with coeff <= 0 from the given sequence
including empty kets


Examples

sdrop (|a> . |> . 0|b> . -3 |c> . |d> . |x> + |y>)
    |a> . |d> . |x> + |y>

sdrop (|a> + 0|b> -3|c> + |d> . |> . |x> + |y> + |z>)
    |a> + |d> . |x> + |y> + |z>


See also

Operator type

core normal